package com.im.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.im.entity.JwtExcludePath;
import com.im.mapper.JwtExcludePathMapper;
import com.im.service.JwtExcludePathService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * JWT 放行路径 Service 实现类
 */
@Service
public class JwtExcludePathServiceImpl extends ServiceImpl<JwtExcludePathMapper, JwtExcludePath> implements JwtExcludePathService {

    @Override
    public List<String> getAllExcludePaths() {
        return list().stream().map(JwtExcludePath::getPath).collect(Collectors.toList());
    }
}
